home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_explosion_big3.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  17.6 KB  |  680 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_EXPLOSION_BIG3)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ActivityType = ENACT_ACTIVE
  7.  
  8. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  9. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  10. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  11. desc.LocalPosition = vzbzd1
  12. vzbzd1:delete()
  13. desc.isAnimateTexture = false
  14. desc.RenderType = ENRENDERTYPE_GEOMETRY
  15.  
  16. Emitter = desc.PS.PSDescription
  17. Emitter.ParticleTypesNumber = 5
  18. local vzbzd2 = D3DXVECTOR3:new(0,200,0)
  19. Emitter.EmitterPosition = vzbzd2
  20. vzbzd2:delete()
  21. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  22. Emitter.EmitterDirection = vzbzd3
  23. vzbzd3:delete()
  24. Emitter.EmitterLifeTime = 1
  25.  
  26.  
  27. PT = Emitter.ParticleTypesParams[1]
  28. PT.IsEmitterLocked = false
  29. PT.DrawOrder = 3
  30. PT.Material = ENMAT_SIMPLEPARTICLE
  31.  
  32. PT.TextureName = "environment_effect_explosion_trash1.dds"
  33.  
  34. PT.ParticlesPerSecond = 0.1;
  35. PT.InitialNumberOfParticles = 60.0;
  36. PT.BaseLifeTime = 5.0;
  37. PT.BaseLifeTimeVariance = 0.0;
  38. PT.BaseSpeed = 2.0;
  39. PT.BaseSpeedVariance = 1.0;
  40.  
  41. PT.TangentSpeed = 1.0;
  42. PT.TangentSpeedVariance = 1.5;
  43. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  44. PT.TangentDirection = vzbzd4
  45. vzbzd4:delete()
  46. PT.TangentAngleMin = 0.0;
  47. PT.TangentAngleMax = 6.28;
  48. PT.IsTangentDependOnBase = false;
  49.  
  50. PT.BaseAngle = 3.0;
  51. PT.BaseAngleVariance = 5.0;
  52. PT.BaseAngleSpeed = 0.2;
  53. PT.BaseAngleSpeedVariance = 0.3;
  54. PT.BaseAngleSpeedDirection = 0;
  55. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  56. PT.BaseDirection = vzbzd5
  57. vzbzd5:delete()
  58. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  59. PT.BaseDirectionVariance = vzbzd6
  60. vzbzd6:delete()
  61. local vzbzd7 = D3DXVECTOR3:new(0,50,0)
  62. PT.BasePosition = vzbzd7
  63. vzbzd7:delete()
  64. local vzbzd8 = D3DXVECTOR3:new(55,22,55)
  65. PT.BasePositionVariance = vzbzd8
  66. vzbzd8:delete()
  67. PT.BaseSize = 4.0;
  68. PT.BaseSizeVariance = 2.0;
  69.  
  70. -- color over time
  71. PT.ColorOverTimeR[1].TimePercent = 0.0;
  72. PT.ColorOverTimeR[1].Value = 0.5;
  73. PT.ColorOverTimeG[1].TimePercent = 0.0;
  74. PT.ColorOverTimeG[1].Value = 0.5;
  75. PT.ColorOverTimeB[1].TimePercent = 0.0;
  76. PT.ColorOverTimeB[1].Value = 0.5;
  77.  
  78. PT.ColorOverTimeR[2].TimePercent = 1.0;
  79. PT.ColorOverTimeR[2].Value = 0.5;
  80. PT.ColorOverTimeG[2].TimePercent = 1.0;
  81. PT.ColorOverTimeG[2].Value = 0.5;
  82. PT.ColorOverTimeB[2].TimePercent = 1.0;
  83. PT.ColorOverTimeB[2].Value = 0.5;
  84.  
  85. -- transparency over time
  86. PT.TransparencyOverTime[1].TimePercent = 0.0;
  87. PT.TransparencyOverTime[1].Value = 1.0;
  88.  
  89. PT.TransparencyOverTime[2].TimePercent = 0.1;
  90. PT.TransparencyOverTime[2].Value = 1.0;
  91.  
  92. PT.TransparencyOverTime[3].TimePercent = 0.2;
  93. PT.TransparencyOverTime[3].Value = 1.0;
  94.  
  95. -- size over time
  96. PT.SizeOverTime[1].TimePercent = 0.0;
  97. PT.SizeOverTime[1].Value = 2.0;
  98.  
  99. PT.SizeOverTime[2].TimePercent = 0.2;
  100. PT.SizeOverTime[2].Value = 4.0;
  101.  
  102. PT.SizeOverTime[3].TimePercent = 1.0;
  103. PT.SizeOverTime[3].Value = 6.0;
  104.  
  105. -- Speed over time
  106. PT.SpeedOverTime[1].TimePercent = 0.0;
  107. PT.SpeedOverTime[1].Value = 20.0;
  108.  
  109. PT.SpeedOverTime[2].TimePercent = 0.5;
  110. PT.SpeedOverTime[2].Value = 0.0;
  111.  
  112. PT.SpeedOverTime[3].TimePercent = 1.0;
  113. PT.SpeedOverTime[3].Value = 0.0;
  114.  
  115. -- Tangent Speed over time
  116. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  117. PT.TangentSpeedOverTime[1].Value = 40.0;
  118.  
  119. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  120. PT.TangentSpeedOverTime[2].Value = 10.0;
  121.  
  122. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  123. PT.TangentSpeedOverTime[3].Value = 20.0;
  124.  
  125.  
  126. -- GravityAcceleration over time
  127. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  128. PT.GravityAccelerationOverTime[1].Value = 40.0;
  129.  
  130. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  131. PT.GravityAccelerationOverTime[2].Value = -50.0;
  132.  
  133. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[3].Value = -100.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 1.0;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 2.0;
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. PT = Emitter.ParticleTypesParams[2]
  155. PT.IsEmitterLocked = false
  156. PT.DrawOrder = 4
  157. PT.Material = ENMAT_SIMPLEPARTICLE
  158.  
  159. PT.TextureName = "environment_effect_explosion_trash2.dds"
  160.  
  161. PT.ParticlesPerSecond = 0.1;
  162. PT.InitialNumberOfParticles = 55.0;
  163. PT.BaseLifeTime = 5.0;
  164. PT.BaseLifeTimeVariance = 0.0;
  165. PT.BaseSpeed = 2.0;
  166. PT.BaseSpeedVariance = 1.0;
  167.  
  168. PT.TangentSpeed = 1.0;
  169. PT.TangentSpeedVariance = 1.5;
  170. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  171. PT.TangentDirection = vzbzd9
  172. vzbzd9:delete()
  173. PT.TangentAngleMin = 0.0;
  174. PT.TangentAngleMax = 6.28;
  175. PT.IsTangentDependOnBase = false;
  176.  
  177. PT.BaseAngle = 3.0;
  178. PT.BaseAngleVariance = 5.0;
  179. PT.BaseAngleSpeed = 0.2;
  180. PT.BaseAngleSpeedVariance = 0.3;
  181. PT.BaseAngleSpeedDirection = 0;
  182. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  183. PT.BaseDirection = vzbzd10
  184. vzbzd10:delete()
  185. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  186. PT.BaseDirectionVariance = vzbzd11
  187. vzbzd11:delete()
  188. local vzbzd12 = D3DXVECTOR3:new(0,15,0)
  189. PT.BasePosition = vzbzd12
  190. vzbzd12:delete()
  191. local vzbzd13 = D3DXVECTOR3:new(55,22,55)
  192. PT.BasePositionVariance = vzbzd13
  193. vzbzd13:delete()
  194. PT.BaseSize = 4.0;
  195. PT.BaseSizeVariance = 2.0;
  196.  
  197. -- color over time
  198. PT.ColorOverTimeR[1].TimePercent = 0.0;
  199. PT.ColorOverTimeR[1].Value = 0.5;
  200. PT.ColorOverTimeG[1].TimePercent = 0.0;
  201. PT.ColorOverTimeG[1].Value = 0.5;
  202. PT.ColorOverTimeB[1].TimePercent = 0.0;
  203. PT.ColorOverTimeB[1].Value = 0.5;
  204.  
  205. PT.ColorOverTimeR[2].TimePercent = 1.0;
  206. PT.ColorOverTimeR[2].Value = 0.5;
  207. PT.ColorOverTimeG[2].TimePercent = 1.0;
  208. PT.ColorOverTimeG[2].Value = 0.5;
  209. PT.ColorOverTimeB[2].TimePercent = 1.0;
  210. PT.ColorOverTimeB[2].Value = 0.5;
  211.  
  212. -- transparency over time
  213. PT.TransparencyOverTime[1].TimePercent = 0.0;
  214. PT.TransparencyOverTime[1].Value = 1.0;
  215.  
  216. PT.TransparencyOverTime[2].TimePercent = 0.1;
  217. PT.TransparencyOverTime[2].Value = 1.0;
  218.  
  219. PT.TransparencyOverTime[3].TimePercent = 0.2;
  220. PT.TransparencyOverTime[3].Value = 1.0;
  221.  
  222. -- size over time
  223. PT.SizeOverTime[1].TimePercent = 0.0;
  224. PT.SizeOverTime[1].Value = 2.0;
  225.  
  226. PT.SizeOverTime[2].TimePercent = 0.2;
  227. PT.SizeOverTime[2].Value = 4.0;
  228.  
  229. PT.SizeOverTime[3].TimePercent = 1.0;
  230. PT.SizeOverTime[3].Value = 6.0;
  231.  
  232. -- Speed over time
  233. PT.SpeedOverTime[1].TimePercent = 0.0;
  234. PT.SpeedOverTime[1].Value = 10.0;
  235.  
  236. PT.SpeedOverTime[2].TimePercent = 0.5;
  237. PT.SpeedOverTime[2].Value = 0.0;
  238.  
  239. PT.SpeedOverTime[3].TimePercent = 1.0;
  240. PT.SpeedOverTime[3].Value = 0.0;
  241.  
  242. -- Tangent Speed over time
  243. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  244. PT.TangentSpeedOverTime[1].Value = 10.0;
  245.  
  246. PT.TangentSpeedOverTime[2].TimePercent = 0.03;
  247. PT.TangentSpeedOverTime[2].Value = 10.0;
  248.  
  249. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  250. PT.TangentSpeedOverTime[3].Value = 10.0;
  251.  
  252.  
  253. -- GravityAcceleration over time
  254. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  255. PT.GravityAccelerationOverTime[1].Value = 80.0;
  256.  
  257. PT.GravityAccelerationOverTime[2].TimePercent = 0.2;
  258. PT.GravityAccelerationOverTime[2].Value = -50.0;
  259.  
  260. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  261. PT.GravityAccelerationOverTime[3].Value = -100.0;
  262.  
  263. -- AngleSpeed over time
  264. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  265. PT.AngleSpeedOverTime[1].Value = 1.0;
  266.  
  267. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  268. PT.AngleSpeedOverTime[2].Value = 2.0;
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283. PT = Emitter.ParticleTypesParams[3]
  284. PT.IsEmitterLocked = false
  285. PT.DrawOrder = 1
  286. PT.Material = ENMAT_SIMPLEPARTICLE
  287.  
  288. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  289.  
  290.  
  291. PT.ParticlesPerSecond = 0.1;
  292. PT.InitialNumberOfParticles = 20.0;
  293. PT.BaseLifeTime = 3.5;
  294. PT.BaseLifeTimeVariance = 0.1;
  295. PT.BaseSpeed = 5.0;
  296. PT.BaseSpeedVariance = 1.0;
  297.  
  298. PT.TangentSpeed = 2.0;
  299. PT.TangentSpeedVariance = 0.1;
  300. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  301. PT.TangentDirection = vzbzd14
  302. vzbzd14:delete()
  303. PT.TangentAngleMin = 0.0;
  304. PT.TangentAngleMax = 6.28;
  305. PT.IsTangentDependOnBase = false;
  306.  
  307. PT.BaseAngle = 3.0;
  308. PT.BaseAngleVariance = 5.0;
  309. PT.BaseAngleSpeed = 0.1;
  310. PT.BaseAngleSpeedVariance = 0.3;
  311. PT.BaseAngleSpeedDirection = 0;
  312. local vzbzd15 = D3DXVECTOR3:new(0.0,1.0,0.0)
  313. PT.BaseDirection = vzbzd15
  314. vzbzd15:delete()
  315. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  316. PT.BaseDirectionVariance = vzbzd16
  317. vzbzd16:delete()
  318. local vzbzd17 = D3DXVECTOR3:new(0,10,0)
  319. PT.BasePosition = vzbzd17
  320. vzbzd17:delete()
  321. local vzbzd18 = D3DXVECTOR3:new(35,15,35)
  322. PT.BasePositionVariance = vzbzd18
  323. vzbzd18:delete()
  324. PT.BaseSize = 6.0;
  325. PT.BaseSizeVariance = 0.7;
  326.  
  327. -- color over time
  328. PT.ColorOverTimeR[1].TimePercent = 0.0;
  329. PT.ColorOverTimeR[1].Value = 0.5;
  330. PT.ColorOverTimeG[1].TimePercent = 0.0;
  331. PT.ColorOverTimeG[1].Value = 0.5;
  332. PT.ColorOverTimeB[1].TimePercent = 0.0;
  333. PT.ColorOverTimeB[1].Value = 0.5;
  334.  
  335. PT.ColorOverTimeR[2].TimePercent = 1.0;
  336. PT.ColorOverTimeR[2].Value = 0.5;
  337. PT.ColorOverTimeG[2].TimePercent = 1.0;
  338. PT.ColorOverTimeG[2].Value = 0.5;
  339. PT.ColorOverTimeB[2].TimePercent = 1.0;
  340. PT.ColorOverTimeB[2].Value = 0.5;
  341.  
  342. -- transparency over time
  343. PT.TransparencyOverTime[1].TimePercent = 0.0;
  344. PT.TransparencyOverTime[1].Value = 0.0;
  345.  
  346. PT.TransparencyOverTime[2].TimePercent = 0.1;
  347. PT.TransparencyOverTime[2].Value = 0.6;
  348.  
  349. PT.TransparencyOverTime[3].TimePercent = 0.7;
  350. PT.TransparencyOverTime[3].Value = 0.2;
  351.  
  352. PT.TransparencyOverTime[4].TimePercent = 1.0;
  353. PT.TransparencyOverTime[4].Value = 0.0;
  354.  
  355. -- size over time
  356. PT.SizeOverTime[1].TimePercent = 0.0;
  357. PT.SizeOverTime[1].Value = 4.0;
  358.  
  359. PT.SizeOverTime[2].TimePercent = 0.07;
  360. PT.SizeOverTime[2].Value = 12.0;
  361.  
  362. PT.SizeOverTime[3].TimePercent = 1.0;
  363. PT.SizeOverTime[3].Value = 17.0;
  364.  
  365. -- Speed over time
  366. PT.SpeedOverTime[1].TimePercent = 0.0;
  367. PT.SpeedOverTime[1].Value = 1.0;
  368.  
  369. PT.SpeedOverTime[2].TimePercent = 0.4;
  370. PT.SpeedOverTime[2].Value = 1.0;
  371.  
  372. PT.SpeedOverTime[3].TimePercent = 0.5;
  373. PT.SpeedOverTime[3].Value = 0.0;
  374.  
  375. PT.SpeedOverTime[4].TimePercent = 1.0;
  376. PT.SpeedOverTime[4].Value = 0.0;
  377.  
  378. -- Tangent Speed over time
  379. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  380. PT.TangentSpeedOverTime[1].Value = 5.0;
  381.  
  382. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  383. PT.TangentSpeedOverTime[2].Value = 0.0;
  384.  
  385. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  386. PT.TangentSpeedOverTime[3].Value = 0.0;
  387.  
  388. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  389. PT.TangentSpeedOverTime[4].Value = 0.0;
  390.  
  391.  
  392. -- GravityAcceleration over time
  393. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  394. PT.GravityAccelerationOverTime[1].Value = 0.0;
  395.  
  396. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  397. PT.GravityAccelerationOverTime[2].Value = 0.0;
  398.  
  399. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  400. PT.GravityAccelerationOverTime[3].Value = 0.0;
  401.  
  402. -- AngleSpeed over time
  403. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  404. PT.AngleSpeedOverTime[1].Value = 1.0;
  405.  
  406. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  407. PT.AngleSpeedOverTime[2].Value = 1.0;
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419. PT = Emitter.ParticleTypesParams[5]
  420. PT.IsEmitterLocked = false
  421. PT.DrawOrder = 5
  422. PT.Material = ENMAT_SIMPLEPARTICLE
  423.  
  424. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  425.  
  426.  
  427. PT.ParticlesPerSecond = 0.1;
  428. PT.InitialNumberOfParticles = 20.0;
  429. PT.BaseLifeTime = 10.0;
  430. PT.BaseLifeTimeVariance = 0.0;
  431. PT.BaseSpeed = 5.0;
  432. PT.BaseSpeedVariance = 1.0;
  433.  
  434. PT.TangentSpeed = 2.0;
  435. PT.TangentSpeedVariance = 0.1;
  436. local vzbzd19 = D3DXVECTOR3:new(1.0,0.0,0.0)
  437. PT.TangentDirection = vzbzd19
  438. vzbzd19:delete()
  439. PT.TangentAngleMin = 0.0;
  440. PT.TangentAngleMax = 6.28;
  441. PT.IsTangentDependOnBase = false;
  442.  
  443. PT.BaseAngle = 3.0;
  444. PT.BaseAngleVariance = 5.0;
  445. PT.BaseAngleSpeed = 0.05;
  446. PT.BaseAngleSpeedVariance = 0.0;
  447. PT.BaseAngleSpeedDirection = 0;
  448. local vzbzd20 = D3DXVECTOR3:new(0.0,1.0,0.0)
  449. PT.BaseDirection = vzbzd20
  450. vzbzd20:delete()
  451. local vzbzd21 = D3DXVECTOR3:new(0.0,0.0,0.0)
  452. PT.BaseDirectionVariance = vzbzd21
  453. vzbzd21:delete()
  454. local vzbzd22 = D3DXVECTOR3:new(0,10,0)
  455. PT.BasePosition = vzbzd22
  456. vzbzd22:delete()
  457. local vzbzd23 = D3DXVECTOR3:new(35,15,35)
  458. PT.BasePositionVariance = vzbzd23
  459. vzbzd23:delete()
  460. PT.BaseSize = 6.0;
  461. PT.BaseSizeVariance = 0.7;
  462.  
  463. -- color over time
  464. PT.ColorOverTimeR[1].TimePercent = 0.0;
  465. PT.ColorOverTimeR[1].Value = 0.5;
  466. PT.ColorOverTimeG[1].TimePercent = 0.0;
  467. PT.ColorOverTimeG[1].Value = 0.5;
  468. PT.ColorOverTimeB[1].TimePercent = 0.0;
  469. PT.ColorOverTimeB[1].Value = 0.5;
  470.  
  471. PT.ColorOverTimeR[2].TimePercent = 1.0;
  472. PT.ColorOverTimeR[2].Value = 0.5;
  473. PT.ColorOverTimeG[2].TimePercent = 1.0;
  474. PT.ColorOverTimeG[2].Value = 0.5;
  475. PT.ColorOverTimeB[2].TimePercent = 1.0;
  476. PT.ColorOverTimeB[2].Value = 0.5;
  477.  
  478. -- transparency over time
  479. PT.TransparencyOverTime[1].TimePercent = 0.0;
  480. PT.TransparencyOverTime[1].Value = 0.0;
  481.  
  482. PT.TransparencyOverTime[2].TimePercent = 0.7;
  483. PT.TransparencyOverTime[2].Value = 0.2;
  484.  
  485. PT.TransparencyOverTime[3].TimePercent = 0.8;
  486. PT.TransparencyOverTime[3].Value = 0.2;
  487.  
  488. PT.TransparencyOverTime[4].TimePercent = 1.0;
  489. PT.TransparencyOverTime[4].Value = 0.0;
  490.  
  491. -- size over time
  492. PT.SizeOverTime[1].TimePercent = 0.0;
  493. PT.SizeOverTime[1].Value = 4.0;
  494.  
  495. PT.SizeOverTime[2].TimePercent = 0.07;
  496. PT.SizeOverTime[2].Value = 12.0;
  497.  
  498. PT.SizeOverTime[3].TimePercent = 1.0;
  499. PT.SizeOverTime[3].Value = 17.0;
  500.  
  501. -- Speed over time
  502. PT.SpeedOverTime[1].TimePercent = 0.0;
  503. PT.SpeedOverTime[1].Value = 1.0;
  504.  
  505. PT.SpeedOverTime[2].TimePercent = 0.4;
  506. PT.SpeedOverTime[2].Value = 1.0;
  507.  
  508. PT.SpeedOverTime[3].TimePercent = 0.5;
  509. PT.SpeedOverTime[3].Value = 0.0;
  510.  
  511. PT.SpeedOverTime[4].TimePercent = 1.0;
  512. PT.SpeedOverTime[4].Value = 0.0;
  513.  
  514. -- Tangent Speed over time
  515. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  516. PT.TangentSpeedOverTime[1].Value = 5.0;
  517.  
  518. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  519. PT.TangentSpeedOverTime[2].Value = 0.0;
  520.  
  521. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  522. PT.TangentSpeedOverTime[3].Value = 0.0;
  523.  
  524. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  525. PT.TangentSpeedOverTime[4].Value = 0.0;
  526.  
  527.  
  528. -- GravityAcceleration over time
  529. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  530. PT.GravityAccelerationOverTime[1].Value = 0.0;
  531.  
  532. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  533. PT.GravityAccelerationOverTime[2].Value = 0.0;
  534.  
  535. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  536. PT.GravityAccelerationOverTime[3].Value = 0.0;
  537.  
  538. -- AngleSpeed over time
  539. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  540. PT.AngleSpeedOverTime[1].Value = 1.0;
  541.  
  542. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  543. PT.AngleSpeedOverTime[2].Value = 1.0;
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551. PT = Emitter.ParticleTypesParams[4]
  552. PT.IsEmitterLocked = false
  553. PT.DrawOrder = 2
  554. PT.Material = ENMAT_PARTICLE_LIGHT
  555.  
  556. PT.TextureName = "environment_effect_explosion_sparkles1.dds"
  557.  
  558.  
  559. PT.ParticlesPerSecond = 0.1;
  560. PT.InitialNumberOfParticles = 25.0;
  561. PT.BaseLifeTime = 2.0;
  562. PT.BaseLifeTimeVariance = 0.3;
  563. PT.BaseSpeed = 5.0;
  564. PT.BaseSpeedVariance = 1.0;
  565.  
  566. PT.TangentSpeed = 2.0;
  567. PT.TangentSpeedVariance = 0.1;
  568. local vzbzd24 = D3DXVECTOR3:new(1.0,0.0,0.0)
  569. PT.TangentDirection = vzbzd24
  570. vzbzd24:delete()
  571. PT.TangentAngleMin = 0.0;
  572. PT.TangentAngleMax = 6.28;
  573. PT.IsTangentDependOnBase = false;
  574.  
  575. PT.BaseAngle = 3.0;
  576. PT.BaseAngleVariance = 5.0;
  577. PT.BaseAngleSpeed = 0.0;
  578. PT.BaseAngleSpeedVariance = 0.0;
  579. PT.BaseAngleSpeedDirection = 0;
  580. local vzbzd25 = D3DXVECTOR3:new(0.0,1.0,0.0)
  581. PT.BaseDirection = vzbzd25
  582. vzbzd25:delete()
  583. local vzbzd26 = D3DXVECTOR3:new(0.0,0.0,0.0)
  584. PT.BaseDirectionVariance = vzbzd26
  585. vzbzd26:delete()
  586. local vzbzd27 = D3DXVECTOR3:new(0,20,0)
  587. PT.BasePosition = vzbzd27
  588. vzbzd27:delete()
  589. local vzbzd28 = D3DXVECTOR3:new(45,45,45)
  590. PT.BasePositionVariance = vzbzd28
  591. vzbzd28:delete()
  592. PT.BaseSize = 5.0;
  593. PT.BaseSizeVariance = 0.7;
  594.  
  595. -- color over time
  596. PT.ColorOverTimeR[1].TimePercent = 0.0;
  597. PT.ColorOverTimeR[1].Value = 0.5;
  598. PT.ColorOverTimeG[1].TimePercent = 0.0;
  599. PT.ColorOverTimeG[1].Value = 0.5;
  600. PT.ColorOverTimeB[1].TimePercent = 0.0;
  601. PT.ColorOverTimeB[1].Value = 0.5;
  602.  
  603. PT.ColorOverTimeR[2].TimePercent = 1.0;
  604. PT.ColorOverTimeR[2].Value = 0.5;
  605. PT.ColorOverTimeG[2].TimePercent = 1.0;
  606. PT.ColorOverTimeG[2].Value = 0.5;
  607. PT.ColorOverTimeB[2].TimePercent = 1.0;
  608. PT.ColorOverTimeB[2].Value = 0.5;
  609.  
  610. -- transparency over time
  611. PT.TransparencyOverTime[1].TimePercent = 0.0;
  612. PT.TransparencyOverTime[1].Value = 0.0;
  613.  
  614. PT.TransparencyOverTime[2].TimePercent = 0.6;
  615. PT.TransparencyOverTime[2].Value = 0.3;
  616.  
  617. PT.TransparencyOverTime[3].TimePercent = 0.7;
  618. PT.TransparencyOverTime[3].Value = 0.2;
  619.  
  620.  
  621. PT.TransparencyOverTime[4].TimePercent = 1.0;
  622. PT.TransparencyOverTime[4].Value = 0.0;
  623.  
  624. -- size over time
  625. PT.SizeOverTime[1].TimePercent = 0.0;
  626. PT.SizeOverTime[1].Value = 4.0;
  627.  
  628. PT.SizeOverTime[2].TimePercent = 0.07;
  629. PT.SizeOverTime[2].Value = 18.0;
  630.  
  631. PT.SizeOverTime[3].TimePercent = 1.0;
  632. PT.SizeOverTime[3].Value = 22.0;
  633.  
  634. -- Speed over time
  635. PT.SpeedOverTime[1].TimePercent = 0.0;
  636. PT.SpeedOverTime[1].Value = 0.0;
  637.  
  638. PT.SpeedOverTime[2].TimePercent = 0.4;
  639. PT.SpeedOverTime[2].Value = 0.0;
  640.  
  641. PT.SpeedOverTime[3].TimePercent = 0.5;
  642. PT.SpeedOverTime[3].Value = 0.0;
  643.  
  644. PT.SpeedOverTime[4].TimePercent = 1.0;
  645. PT.SpeedOverTime[4].Value = 0.0;
  646.  
  647. -- Tangent Speed over time
  648. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  649. PT.TangentSpeedOverTime[1].Value = 0.0;
  650.  
  651. PT.TangentSpeedOverTime[2].TimePercent = 0.4;
  652. PT.TangentSpeedOverTime[2].Value = 0.0;
  653.  
  654. PT.TangentSpeedOverTime[3].TimePercent = 0.5;
  655. PT.TangentSpeedOverTime[3].Value = 0.0;
  656.  
  657. PT.TangentSpeedOverTime[4].TimePercent = 1.0;
  658. PT.TangentSpeedOverTime[4].Value = 0.0;
  659.  
  660.  
  661. -- GravityAcceleration over time
  662. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  663. PT.GravityAccelerationOverTime[1].Value = 0.0;
  664.  
  665. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  666. PT.GravityAccelerationOverTime[2].Value = 0.0;
  667.  
  668. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  669. PT.GravityAccelerationOverTime[3].Value = 0.0;
  670.  
  671. -- AngleSpeed over time
  672. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  673. PT.AngleSpeedOverTime[1].Value = 1.0;
  674.  
  675. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  676. PT.AngleSpeedOverTime[2].Value = 1.0;
  677.  
  678.  
  679.  
  680.